import api from './axios'
//轮播图
export const getSwiper=(params)=>api({
    path:'GET',
    url:'/banner',
    params
})
//每日推荐
export  const GoodsDay=(params={})=>api({
    path:'GET',
    url:'/recommend/songs',
    params
})
//推荐歌单
export const GoodsPlaylist=(params={})=>api({
    path:'GET',
    url:'/personalized?limit=10',
    params
})
//获取歌单歌曲
export  const getPlaylistSong=(id)=>api({
    path:'GET',
    url:`/playlist/track/all?id=${id}&limit=40offset=1`,
})
//获取歌单详细信息
export const getPlayListInfo=(id)=>api({
    path:'GET',
    url:`/playlist/detail?id=${id}`
})
//获取用户详情
export const getUserInfo=(uid)=>api({
    path:'GET',
    url:`/user/detail?uid=${uid}`
})
//获取歌曲详情
export const getSong=(id)=>api({
    path:'GET',
    url:`/song/url?id=${id}`
})